<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>系统管理员 HDSysCms</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/style/admin.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui_ext/dtree/dtree.css">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui_ext/dtree/font/dtreefont.css">
</head>
<body data="HDSYSCMS 2021本系统受国家版权局保护请勿破解或者二次开发传播">
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-header">栏目管理</div>
<div style="min-height: 90vh;" class="layui-card-body">
<div class="layui-btn-container1 rows">
<div class="layui-bins">
<button class="layui-btn layui-btn-sm bin-add" lay-event="act_1"><i class="layui-icon layui-icon-add-circle-fine"></i>添加栏目</button>
</div>
<div class="layui-soso">
</div>
</div>
<ul id="commonTree" style="width: auto;" data-id="0"></ul>
</div>
</div>
</div>
</div>
</div>
<style>.dtree-zdy-item-this {background-color: #deeefd00 !important;}.dtree-zdy-item:hover {background-color: #deeefd !important;}.dtree-zdy-item cite {font-size: 16px !important;}.dtree-zdy-item:hover cite {color: #1b84ed !important;}.dtree-zdy-dtreefont {font-size: 18px !important;}.dtree-zdy-ficon {color: #2F4056 !important;}.dtree-zdy-icon {color: #2F4056 !important;}.dtree-zdy-checkbox:hover {color: #5FB878 !important;}.dtree-zdy-choose {color: #5FB878 !important;}.dtree-nav-first-line,.dtree-nav-line,.dtree-nav-last-line {line-height: 40px;}</style>
<?php adminechohtnl(); ?>
<div id="foot">Copyright © 2019-2023 <a href="https://www.HDSysCms.Com?pro" target="_blank">HDSysCms <?php echo HDSYS_VERSION; ?></a> <br>
All Rights Reserved </div>
<script src="<?php echo getcdnurlhost() ?>/admin/layui/layui.js?123"></script>
<script>var focus_='';layui.extend({dtree: 'layui_ext/dtree/dtree'}).config({version: '2023',base: '<?php echo getcdnurlhost() ?>/admin/'}).use(['form', 'layer', 'dtree', 'util'], function() {var admin=layui.admin,$=layui.$,form=layui.form,dtree=layui.dtree;loaddata();$('.bin-add').on('click', function() {location.href="index.php?m=manage&c=Category&a=add&listid=0"});window.openpage=function(url) {var homeusr='<?php echo getsysurl(); ?>';if (url.template=='jmp') {window.open(url.url=='' ? homeusr : url.url);return;}var data="<?php if (bs_lib::get_configs_value('seo', 'switch')==1) {$param_tmp=getsysurl() .   '" + url.static_url + ".html';$param_tmp=call_my_str_replace('/index.html', '', $param_tmp);echo $param_tmp;} else {$param_tmp=getsysurl() . 'index.php/' .   '" + url.static_url + ".html';$param_tmp=call_my_str_replace('/index.html', '', $param_tmp);echo $param_tmp;}  ?>";window.open(data);};$(document).on('keypress', '.input_sort', function(event) {if (event.keyCode=="13") {input_sort($(this).attr('data-id'), $(this).val(), this);};});$(document).on('blur', '.input_sort', function(event) {input_sort($(this).attr('data-id'), $(this).val(), this);});$(document).on('focus', '.input_sort', function(event) {focus_=$(this).val();$(this).select();});window.input_sort=function(id, sort, this_) {if (sort=='') {$(this_).val(focus_);return;};if (sort==focus_) {$(this_).blur();return;};layer.load(1);$.ajax({type: "post",url: 'index.php?m=manage&c=Category&a=input_sort_ajax',data: {id: id,sort: sort},dataType: "json",success: function(ret) {layer.closeAll('loading');layer.msg(ret.msg);if (ret.code==1) {loaddata();}}});};function loaddata() {$.ajax({type: "post",url: 'index.php?m=manage&c=Category&a=list_ajax',data: '',dataType: "json",success: function(ret) {if (ret.code==1) {dtree.render({elem: "#commonTree",data: ret.data,width: '100%',height: "full",line: true,skin: "zdy",initLevel: 5,none: "暂时没有栏目，点击栏目添加按钮添加顶级栏目",ficon: ["-1", "-1"],icon: ["-1"],toolbarWay: "fixed",toolbarShow: [],toolbar: true,toolbarExt: [{toolbarId: "text0",classa: "setsdteer",icon: "exits",size: "1",title: ' <i class="layui-icon iconzise layui-icon-add-circle-fine"></i>添加子栏目 ',handler: function(node) {location.href="index.php?m=manage&c=Category&a=add&listid=" + node.nodeId;}},{toolbarId: "text3",classa: "setsdteer",icon: "exits",size: "1",title: ' <i class="layui-icon iconzise dtree-icon-bianji"></i>编辑 ',handler: function(node) {location.href="index.php?m=manage&c=Category&a=edit&listid=" + node.nodeId;}}, {toolbarId: "text4",classa: "setsdteer",icon: "exits",size: "1",title: ' <i class="layui-icon iconzise layui-icon-website"></i>浏览 ',handler: function(node) {openpage(node.basicData);}},{toolbarId: "text5",classa: "setsdteer",icon: "layui-btn",size: "1",title: ' <i class="layui-icon iconzise dtree-icon-delete1"></i>删除 ',handler: function(node) {layer.confirm('您确定删除栏目吗？', {btn: ['确定', '取消']}, function() {layer.load(1);$.ajax({type: "post",url: "index.php?m=manage&c=Category&a=del_ajax&id=" + node.nodeId,data: 'id=' + node.nodeId,dataType: "json",success: function(ret) {layer.closeAll('loading');loaddata();layer.msg(ret.msg);},error: function(e, t) {layer.closeAll('loading');layer.alert('接口请求返还异常');}})}, function() {});}},]});} else {layer.msg(ret.msg);}}});return false;};});</script>
<style>.exits {}.setsdteer {color: #464c5b !important;font-size: 14px !important;margin-left: 10px;}.setsdteer:hover {color: #1b84ed !important;}.iconzise:hover {color: #1b84ed !important;}.iconzise {color: #464c5b !important;}.dtree-icon-null-open,.dtree-icon-null-close,.dtree-icon-null {margin: 0 0px;}.input_sort {width: 30px;height: 19px;border: 0;border-bottom: 1px solid #eee;color: #2f4056;text-align: center;background: #ffffff00;}.dtree-nav-show {display: block !important;margin-left: 0px;}.dtree-nav-show li {padding-left: 50px;}.dtreefont-special {margin: 0 0px;}.dtree-nav-line::after {content: "";position: absolute;top: 20px;left: 8px;width: 40px;height: 0px;border-top: 1px dotted rgb(29, 71, 176);}.dtree-nav-last-line:after {content: "";position: absolute;top: 20px;left: 8px;width: 40px;height: 0;border-top: 1px dotted #1d47b0;}.input_sort:focus {width: 80px;border: 1px solid #2b83f9;margin-left: 10px;margin-right: 10px;border-radius: 3px;}</style>
</body>
</html>